import service from '@/utils/request'
// @Tags SysStores
// @Summary 创建门店信息
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.SysStores true "创建门店信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /sysStores/createSysStores [post]
export const createSysStores = (data) => {
  return service({
    url: '/sysStores/createSysStores',
    method: 'post',
    data
  })
}

// @Tags SysStores
// @Summary 删除门店信息
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.SysStores true "删除门店信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysStores/deleteSysStores [delete]
export const deleteSysStores = (params) => {
  return service({
    url: '/sysStores/deleteSysStores',
    method: 'delete',
    params
  })
}

// @Tags SysStores
// @Summary 批量删除门店信息
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除门店信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysStores/deleteSysStores [delete]
export const deleteSysStoresByIds = (params) => {
  return service({
    url: '/sysStores/deleteSysStoresByIds',
    method: 'delete',
    params
  })
}

// @Tags SysStores
// @Summary 更新门店信息
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.SysStores true "更新门店信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /sysStores/updateSysStores [put]
export const updateSysStores = (data) => {
  return service({
    url: '/sysStores/updateSysStores',
    method: 'put',
    data
  })
}

// @Tags SysStores
// @Summary 用id查询门店信息
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.SysStores true "用id查询门店信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sysStores/findSysStores [get]
export const findSysStores = (params) => {
  return service({
    url: '/sysStores/findSysStores',
    method: 'get',
    params
  })
}

// @Tags SysStores
// @Summary 分页获取门店信息列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取门店信息列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysStores/getSysStoresList [get]
export const getSysStoresList = (params) => {
  return service({
    url: '/sysStores/getSysStoresList',
    method: 'get',
    params
  })
}

// @Tags SysStores
// @Summary 不需要鉴权的门店信息接口
// @Accept application/json
// @Produce application/json
// @Param data query systemReq.SysStoresSearch true "分页获取门店信息列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /sysStores/getSysStoresPublic [get]
export const getSysStoresPublic = () => {
  return service({
    url: '/sysStores/getSysStoresPublic',
    method: 'get',
  })
}
